<%
String ug = request.getHeader("User-Agent");
if(ug!=null){
   if(ug.matches("(?i).*iphone.*")){
       response.sendRedirect("http://www.apple.com/itunes/");
   }else if(ug.matches("(?i).*android.*micromessenger.*")){
       response.sendRedirect("http://api.hua1000.com/download/download.html");
   }else{
       response.sendRedirect("http://image.hua1000.com/Flower_v0.6.1.apk");
   }
}
%>
